package com.example.webapp.hibernate.forum;

import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;

import com.example.webapp.hibernate.user.User;

public class Forum {
	private long forumId;
	private String title;
	private Calendar created;
	private User createdBy;

	private Set<ForumCategory> categories = new HashSet<ForumCategory>();

	public long getForumId() {
		return forumId;
	}

	public void setForumId(long forumId) {
		this.forumId = forumId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Calendar getCreated() {
		return created;
	}

	public void setCreated(Calendar created) {
		this.created = created;
	}

	public User getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(User createdBy) {
		this.createdBy = createdBy;
	}

	public Set<ForumCategory> getCategories() {
		return categories;
	}

	public void setCategories(Set<ForumCategory> categories) {
		this.categories = categories;
	}

}
